package com.automannn.seataSamples.api.response;

/**
 * @author automannn
 * @Date 2022/3/24
 * @Description 响应结果枚举
 */
public enum ResponseStatusEnum {
    SUCCESS(200,"成功"),
    FAIL(-1,"失败"),
    EXCEPTION(500,"系统异常"),;

    /**
     * 状态码
     */
    private int code;

    /**
     * 响应信息
     */
    private String message;

    ResponseStatusEnum(int code,String message){
        this.code=code;
        this.message=message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
